FROM docker.io/library/openjdk:8u312-jdk

RUN mkdir -p /apps/ && mkdir -p /apps/conf/

COPY equip-gateway-biz.jar /apps/equip-gateway-biz.jar
COPY conf/ /apps/conf/
WORKDIR /apps
EXPOSE 10051

RUN chmod +x /apps/equip-gateway-biz.jar

CMD ["java","-jar","-Xmx256M","-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai","/apps/equip-gateway-biz.jar","--spring.config.location=/apps/conf/"]
